#include <iostream>
using namespace std;

class numarComplex{
    double real, imag;
public:
    numarComplex();
    numarComplex(double x, double y);
    ~numarComplex();
    double getReal();
    double getImag();
    void setReal(double);
    void setImag(double);
    numarComplex operator+(numarComplex);
    numarComplex operator+(double);
    friend ostream& operator<<(ostream&, numarComplex);
    friend ostream& operator<<(ostream&,numarComplex[]);
};